<%@page import="web.lbsproject.processaudit.model.TaskExecution4Web"%>
<%@page import="lbsproject.processaudit.model.WorkRegion"%>
<%@page import="lbsproject.processaudit.model.Worker"%>
<%@page import="web.lbsproject.processaudit.model.CheckTaskDefine4Web"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>巡检项目执行记录</title>
<link href="css/global.css" type="text/css" rel="stylesheet"/>
<style type="text/css">
.item-t 
{
	font-weight: bold;
}
</style>
<script language="javascript" type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="js/jquery1.4.4.js"></script>
<script type="text/javascript" src="js/global.js"></script>
<script type="text/javascript" src="js/queryForm.js" charset="UTF-8"></script>
</head>
<body>
	<jsp:include page="WEB-INF/template/header.jsp">
		<jsp:param value="current" name="executeManage"/>
	</jsp:include>
	<div id="container" class="section">
		<div class="main">
			<form class="form" method="post" action="QueryTaskExecution">
				<jsp:include page="WEB-INF/template/executeManage/queryForm.jsp"/>
			</form>
			<h1 align="center">&nbsp;执行记录&nbsp;</h1> 
			<div>
				<table class="table">
					<thead>
						<tr>
							<th width="14%">时间</th>
							<th width="14%">任务</th>
							<th width="12%">执行人</th>
							<th width="12%">任务状况</th>
							<th width="12%">执行结果</th>
							<th width="20%">执行日志</th>
							<th width="14%">操作</th>
						</tr>
					</thead>
					<tbody>
					<%
					@SuppressWarnings("unchecked")
					List<TaskExecution4Web> exes = (List<TaskExecution4Web>)request.getAttribute("taskExecutions");
					if (exes != null) {
						for (TaskExecution4Web exe: exes) {
					%>
						<tr>
							<td><%=exe.getTime() %></td>
							<td><%=exe.getTaskName() %><br/>(巡检)</td>
							<td><%=exe.getExePerson() %></td>
							<td><%=exe.getTaskStatus() %></td>
							<td><%=exe.getExeResult() %></td>
							<td>日志信息（暂无）</td>
							<td><a href="CheckTaskRecordDetail?recordID=<%=exe.getRecordID()%>">查看详情</a></td>
						</tr>
					<%
						}
					}
					%>
					</tbody>
				</table>
			</div>
		</div>
		<div class="aside">
			<ul class="side-nav">
				<li class="nav-item high-light"><a id="side-nav-1" class="nav-base" href=""><b>执行记录</b><em></em></a></li>
				<li class="nav-item "><a id="side-nav-1" class="nav-base" href="ShowTaskExecution?forwardPage=executionAccomplish"><b>完成情况</b><em></em></a></li>
			</ul> 
		</div>
		<div class="clear"></div>
	</div>
	<jsp:include page="WEB-INF/template/footer.jsp"></jsp:include>
</body>
</html>